package com.tebiecloud.base.client.constants;

/**
 * 通用权限常量
 * @Author: tebie
 * @Date: 2019-07-30 16:45
 */
public class BaseConstants {

    /**
     * 服务名称
     */
    public static final String BASE_SERVER = "tebie-cloud-base-server";

    /**
     * 默认接口分类
     */
    public final static String DEFAULT_API_CATEGORY = "default";

    /**
     * 状态:0-无效 1-有效
     */
    public final static int ENABLED = 1;
    public final static int DISABLED = 0;

    /**
     * 系统用户类型:超级管理员-super 普通管理员-admin 普通用户-user
     */
    public final static String USER_TYPE_SUPER = "super";
    public final static String USER_TYPE_ADMIN = "admin";
    public final static String USER_TYPE_USER = "user";

    /**
     * 账号状态
     * 0:禁用、1:正常、2:锁定
     */
    public final static int ACCOUNT_STATUS_DISABLE = 0;
    public final static int ACCOUNT_STATUS_NORMAL = 1;
    public final static int ACCOUNT_STATUS_LOCKED = 2;

    /**
     * 账号类型:
     * username:系统用户名、email：邮箱、mobile：手机号、qq：QQ号、mpweixin：微信号、weibo：微博、mp：微信公众号、miniprogram：微信小程序
     */
    public final static String ACCOUNT_TYPE_USERNAME = "username"; // 系统用户名
//    public final static String ACCOUNT_TYPE_EMAIL = "email"; // 邮箱
//    public final static String ACCOUNT_TYPE_MOBILE = "mobile"; // 手机号
//    public final static String ACCOUNT_TYPE_QQ = "qq"; // QQ号
//    public final static String ACCOUNT_TYPE_WEIXIN = "mpweixin"; // 微信号
//    public final static String ACCOUNT_TYPE_WEIBO = "weibo"; // 微博
    public final static String ACCOUNT_TYPE_MP = "mp"; // 微信公众号
    public final static String ACCOUNT_TYPE_MINIPROGRAM = "miniprogram"; // 微信小程序
    public final static String ACCOUNT_TYPE_STORE_ACCOUNT = "store-account"; // 门店
    public final static String ACCOUNT_TYPE_AGM = "agm"; // AGM
    public final static String ACCOUNT_TYPE_STAFF_PHONE = "staff-phone"; // 员工手机号
    public final static String ACCOUNT_TYPE_SYSTEM_AUTO = "system-auto"; // 系统自动登录

    /**
     * 账号域
     */
    public static final String ACCOUNT_DOMAIN_ADMIN = "@admin.com"; // 管理员域
    public static final String ACCOUNT_DOMAIN_PORTAL= "@portal.com"; // 平台域
    public static final String ACCOUNT_DOMAIN_USER = "@user.com"; // 用户域
    public static final String ACCOUNT_DOMAIN_MP = "@mp.com"; // 公众号域
    public static final String ACCOUNT_DOMAIN_MPMINI = "@mpmini.com"; // 小程序域
}
